package com.company.nuwa.common.enumration;

/**
 * <p>描述</p>
 *
 * @author Lionel Lee
 * @version 1.0: AppEnum.java
 * @date 2022/12/8 15:44
 */
public enum AppEnum {


    /**
     * 爆金云销
     */
    FLOW(10L, "爆金流量"),

    ;

    private final Long code;

    private final String remark;

    AppEnum(Long code, String remark) {
        this.code = code;
        this.remark = remark;
    }

    /**
     * 获取枚举描述
     *
     * @param code
     * @return
     */
    public static String getDescByCode(Long code) {
        for (AppEnum status : values()) {
            if (status.code.equals(code)) {
                return status.remark;
            }
        }
        return null;
    }

    public Long getCode() {
        return code;
    }

    public String getRemark() {
        return remark;
    }

}
